﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO;
using Volo.Abp.Application.Services;

namespace ThridGroup.ERP.RBAC
{
    /// <summary>
    /// 角色接口层
    /// </summary>
    public interface IRoleServicers : IApplicationService
    {

        /// <summary>
        /// 添加角色
        /// </summary>
        /// <returns></returns>
        Task<int> AddRole(CreateRoleDto createRoleDto);
        /// <summary>
        /// 显示所有角色
        /// </summary>
        /// <returns></returns>
        Task<List<RoleListDto>> QueryRole();
       

        /// <summary>
        /// 删除角色信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task DelRole(int id);

        /// <summary>
        /// 回显角色信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<RoleListDto> FullRole(int id);


        /// <summary>
        /// 修改角色信息
        /// </summary>
        /// <param name="createRoleDto"></param>
        /// <returns></returns>
        Task<int> UpRole(CreateRoleDto createRoleDto);
        /// <summary>
        ///显示角色信息  分页
        /// </summary>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        Task<List<RoleListDto>> GetRole(int page = 1, int limit = 10);
    }
}
